$(function(){
	var href=window.location.href;
	if(href.indexOf("test") >0){
		$("body").on("contextmenu",function (){
		oEvent = event || ev
		window.oEvent.returnValue=false;  
	    return false;
		}).on("selectstart",function (){
			return false;
		})
		
		
		function fuckyou() {
		    window.location = 'about:blank';
		    window.close();
		};
		
		function ck() {
		    console.profile();
		    console.profileEnd();
		    if (console.clear) {
		    	console.clear();
			    if ((window.outerHeight - window.innerHeight) > 200) {
			        fuckyou();
			    };
		    }
		    return console.profiles > 0;
		};
		
		function hehe() {
		    if ((window.console && window.console.firebug) || (typeof opera == "object" && typeof opera.postError == "function")) {
		        fuckyou();
		    };
		    if (ck()) {
		        fuckyou();
		    };
		};
		
		hehe();
		
		window.onresize = function() {
		    if ((window.outerHeight - window.innerHeight) > 200) {
		        fuckyou();
		    };
		};
		
		$(document).keydown(function() {
		    return key(arguments[0]);
		});
		
		function key(a) {
		    var b;
		    if (window.event) {
		        b = a.keyCode;
		    } else {
		        if (a.which) {
		            b = a.which;
		        };
		    };
		    if (b == 123) {
		        window.close();
		        return false;
		    };
		};
	}
});
